package com.nwpu.server.authserver.vo;

import com.nwpu.server.common.valid.ListValue;
import com.nwpu.server.common.valid.LoginGroup;
import com.nwpu.server.common.valid.RegisterGroup;
import com.nwpu.server.common.valid.UpdateUserGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: YuXingZh
 * @Date: Created in 22:16 2022-04-17
 * @Description:
 */
@Data
public class RegisterForm {

    @NotBlank(groups = {RegisterGroup.class}, message = "username必须非空")
    private String username;

    @NotBlank(groups = {RegisterGroup.class}, message = "password必须非空")
    private String password;

    @NotBlank(groups = {RegisterGroup.class}, message = "email必须非空")
    private String email;


    @NotBlank(groups = {RegisterGroup.class}, message = "phone必须非空")
    private String phone;

}
